describe 'build'
  before_each
    build_json = json_fixture("build.json");
    build = new Build(build_json);
  end
  
  it 'should tell the build date'
    var build_date = build.getDate();
    build_date.should.be("2011-10-26");
  end
  
  it 'should tell the submitter name'
    var submitter_name = build.getSubmitter();
    submitter_name.should.be("songxu");
  end

  it 'should not throw exception when the build has no changeset'
  	build_withno_changeset = new Build(json_fixture('build_withno_changeset.json'));
  	build_withno_changeset.getSubmitter().should.equal(undefined);
  end
end
